package com.ztesoft.huangfu.learning.springboot.springbootmongodb.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/5/28
 * Time: 18:44
 * Version: 1.0
 * Description:
 **/
@Data
@Document(collection = "customer")
public class Customer {
    private String id;
    private String firstName;
    private String lastName;

    public Customer() {
    }

    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

}
